package com.FH.applyForm.officeServies.export.vacation;

import com.FH.util.ResultDTO;

import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/vacationexport")
@Produces(MediaType.APPLICATION_JSON)
@RequestScoped
public class VacationResource {

    @EJB VacationDAO vacationDAO;

    @GET
    @Path("/download/{search}")
    public ResultDTO exportVacationExcel(@PathParam("search") String condition){
        return vacationDAO.exportVacationExcel(condition);
    }
}
